package com.zyl.pts.mapper;

import com.zyl.pts.domain.bean.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.mapper
 * @ClassName: UserMapper
 * @Description TODO(用户数据层)
 * @Author 翟玉龙
 * @Date 2024/11/19-9:17
 */
@Mapper
public interface UserMapper {

    /**
     * 根据用户名和密码查询用户
     * @param username 用户名
     * @param password {@code null}
     * @return {@link Account }
     */
    Account getUserByUserName(@Param("username") String username, @Param("password") String password);

    /**
     * 根据id查询用户
     * @param id 用户id
     * @return {@link Account }
     */
    Account getUserById(String id);
}
